<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            margin-left: 20px;
            margin-right: 20px;
        }
    </style>
</head>
<body>
<h1>Goods</h1>
<div th:each="item,state : ${list}" style="display: flex;">
    <div th:text="${state.index+1}"></div>
    <div th:text="${item.goods_name}"></div>
    <div th:text="${item.goods_title}"></div>
    <div th:text="${item.goods_price}"></div>
    <div th:text="${item.goods_stock}"></div>

    <div th:text="${item.seckill_price}"></div>
    <div th:text="${item.stock_count}"></div>
    <div><img th:src="@{'/img/'+${item.goods_img}}" style="width:100px;height:100px;"/></div>
    <div><a th:href="'/detail/'+${item.id}">查看详情</a></div>

</div>
</body>
</html>